package com.uum.admin;

import com.uum.admin.api.OperationLogFeignClient;
import com.uum.auth.api.LoginFeignClient;
import com.uum.blog.api.BlogFeignClient;
import com.uum.mq.api.MqFeignClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackageClasses = {MqFeignClient.class, OperationLogFeignClient.class, LoginFeignClient.class, BlogFeignClient.class})
@MapperScan("com.uum.admin.mapper")
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
